#include "Pacs_ShowPicView.h"
#include <QPicture>

Pacs_ShowPicView::Pacs_ShowPicView(QWidget *parent)
	: QWidget(parent)
{
	this->setWindowFlags(Qt::FramelessWindowHint);
	ui.setupUi(this);

}

void Pacs_ShowPicView::setPic(const QString& strImg)
{
	QPixmap *pixmap = new QPixmap;
	pixmap->load(strImg);
	QPixmap pixMap = pixmap->scaled(ui.label->size());
	ui.label->setPixmap(pixMap);
}
void Pacs_ShowPicView::setPic(const QPixmap& pixmap)
{
	QPixmap tempPixMap = pixmap;
	QPixmap pixMap = tempPixMap.scaled(ui.label->size());
	ui.label->setPixmap(pixMap);
}
Pacs_ShowPicView::~Pacs_ShowPicView()
{
}
